/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Player;

import java.awt.Graphics;
import java.awt.Image;
import javax.swing.ImageIcon;

/**
 *
 * @author Joakim
 */
public class Projectile{
    private int xPos;
    private int yPos;
    private int power;

    private String projectileImg = "images/projectile.gif";

    //Image projectileImg;

    public Projectile(int x, int y){
        xPos = x;
        yPos = y;
        power = 1;
    }

    public int getXPos(){
        return xPos;
    }

    public int getYPos(){
        return yPos;
    }

    public void moveProjectile(){
        yPos = yPos + 2;
    }

    public boolean checkProjectile(){
        if(yPos <= 0){
            return true;
        }
        return false;
    }

    public void setPower(int power){
        this.power = power;
    }

    public int getPower(){
        return power;
    }

    public String getImage(){
        return projectileImg;
    }

}
